package com.upcode.weighing.vo.add;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

//导入房屋信息参数
@Data
@EqualsAndHashCode(callSuper=false)
public class HouseInfoVo {
    //1.项目信息
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;//项目ID
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id1;//父级ID
    private String name;//项目名称
    @JsonSerialize(using= ToStringSerializer.class)
    private Long user;//创建人
    private LocalDateTime time;//创建时间

    //2.楼宇信息
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id2;//楼宇id
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id3;//所属项目id
    private String name1;//楼号
    @JsonSerialize(using= ToStringSerializer.class)
    private Long user1;//创建人
    private LocalDateTime time1;//创建时间

    //3.单元信息
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id4;//单元ID
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id5;//所属项目
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id6;//所属楼宇
    private String name2;//单元号
    @JsonSerialize(using= ToStringSerializer.class)
    private Long user2;//创建人
    private LocalDateTime time2;//创建时间

    //4.房屋信息
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id7;//房屋ID
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id8;//所属项目
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id9;//所属楼宇
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id10;//所属单元
    private String name3;//房屋名称
    private BigDecimal mj;//面积
    private BigDecimal hight;//层高
    private Integer type;//类型(1.普通居民 2公寓 3.商业 4.大客户)
    private String yzxm;//业主姓名
    private String yzsjh;//业主手机
    private String yzsfzh;//业主身份证
    @JsonSerialize(using= ToStringSerializer.class)
    private Long user3;//创建人
    private LocalDateTime time3;//创建时间

    /*修改房屋所需信息*/
    @JsonSerialize(using= ToStringSerializer.class)
    private Long ids;//房屋ID
    @JsonSerialize(using= ToStringSerializer.class)
    private Long ids1;//所属项目
    @JsonSerialize(using= ToStringSerializer.class)
    private Long ids2;//所属楼宇
    @JsonSerialize(using= ToStringSerializer.class)
    private Long ids3;//所属单元
    private String roomMc;//房屋名称
    private BigDecimal roomMj;//面积
    private BigDecimal roomCg;//层高
    private Integer roomLx;//类型
    private String names;//业主姓名
    private String mobile;//业主手机
    private String card;//业主身份证
    @JsonSerialize(using= ToStringSerializer.class)
    private Long xgr;//修改人
    private LocalDateTime upTime;//修改时间



}
